#{extends 'layout.html' /}
#{set title:messages.get('crud.list.title', '附件资源') /}
<div id="crudList" class="">
    <div id="crudListSearch">
    </div>
    <div id="crudListTable">
      <table>
                <thead>
			      <tr>
			        <th>附件名称</th>
			        <th>附件路径</th>
			        <th>附件描述</th>
			        <th>操作</th>
			      </tr>
			      </thead>
   		#{list items:attList,as:'att'}
	   		<tr>
	   			<td style="display:none">${att.id}</td>
		   		<td>${att.attName}</td>
		   		<td>${att.attPath}</td>
		   		<td>${att.attDis}</td>
		   		<td width="10%">
	   			<a href="@{show(att.id)}"><img src="@{'/public/images/edit.jpg'}" width="10" height="10"></a>
	   			<a href="@{deleteAtt(att.id)}"><img src="@{'/public/images/dele.jpg'}" width="10" height="10" onclick=" return confirm('确定要删除这条数据吗 ？') "></a>
	   			</td>
	   		</tr>
   		#{/list}
     </table>
    </div>
    <div id="crudListPagination">
    </div>
    <p id="crudListAdd">
        <a href="@{blank()}">上传附件</a>
    </p>
</div>
